package com.kingyea.mobilepolice.apimanage.association.dao;

import com.kingyea.mobilepolice.apimanage.association.bean.ServiceRequesterAssociation;
import com.kingyea.mobilepolice.apimanage.association.vo.ServiceRequesterAssociationVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author Mr.Lin
 * @version v1.0.0
 * @description ServiceRequesterAssociationMapper
 * @date Created in 2018-03-10 18:52:52
 */
@Repository
public interface ServiceRequesterAssociationMapper {

    /**
     * 通过ID获取对象
     */
    ServiceRequesterAssociation getById(@Param("requesterId") Integer requesterId, @Param("serviceId") Integer serviceId);

    /**
     * 通过ID删除对象
     */
    void deleteById(@Param("requesterId") Integer requesterId, @Param("serviceId") Integer serviceId);

    /**
     * 更新对象
     */
    void update(ServiceRequesterAssociation obj);

    /**
     * 保存对象
     */
    void save(ServiceRequesterAssociation obj);

    /**
     * 查询列表
     */
    List<ServiceRequesterAssociation> list(ServiceRequesterAssociation obj);

    List<ServiceRequesterAssociationVO> searchByCondition(Map<String, Object> map);

    ServiceRequesterAssociation getBySN(@Param("requesterSN") String requesterSN, @Param("serviceSN") String serviceSN);
}
